package com.findu.activity;

import com.example.findu.R;
import com.example.findu.R.id;
import com.example.findu.R.layout;
import com.findu.control.Public_title_dynamic;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.ImageView;
import android.widget.TextView;

/**
 * 
 * @ClassName: Home_More_Person_twoDimension_code
 * @Description: TODO(显示用户二维码)
 * @author hgf
 * @date 2015-11-4 下午5:19:56
 * 
 */
public class Home_More_Person_twoDimension_code extends Activity {
	// 标题控制
	private Public_title_dynamic public_title;
	// 声明title布局
	private View include_view;

	//声明页面用到的元素
	private ImageView userImage;	//用户头像
	
	private TextView userName;	//用户姓名 
	
	private TextView userSex;	//用户性别
	
	private TextView userAge;
	
	private TextView user_area;	//用户市/省
	
	private TextView user_site;	//用户区
	
	private ImageView twoDimensionImage;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.activity_home__more__person_two_dimension_code);

		// 初始化标题
		init_title();

		// 初始化元素
		init_element();
	}
	
	/**
	 * 初始化用到的组件
	 */

	private void init_element() {
		// TODO Auto-generated method stub
		userName = (TextView) findViewById(R.id.twoDimension_code_UserName);
		userSex = (TextView) findViewById(R.id.twoDimension_code_user_Sex);
		userAge = (TextView) findViewById(R.id.twoDimension_code_user_Age);
		user_area = (TextView) findViewById(R.id.twoDimension_code_user_area);
		user_site = (TextView) findViewById(R.id.twoDimension_code_user_site);
		
		userImage = (ImageView) findViewById(R.id.twoDimension_code_UserImage);
		twoDimensionImage = (ImageView) findViewById(R.id.twoDimension_code_user_twoDimensionImage);
	}

	/**
	 * 初始化title
	 */
	private void init_title() {
		// 初始化title
		include_view = findViewById(R.id.home_More_personal_twoDimension_code_include);
		public_title = new Public_title_dynamic(include_view); // 新建工具类设置布局控件

		// title详细设置
		public_title.setTextLeft("二维码名片");
		public_title.setTextView("");
		public_title.setRighttImageVisiable(false);
		public_title.setTextRight_Gone();

		// 设置标题事件
		ImageView leftImage = (ImageView) include_view
				.findViewById(R.id.public_title_dynamic__liftImage);

		// 离开活动
		leftImage.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				finish();
			}
		});

	}

}
